
public abstract class Pet {
	protected String cat;//protected means can be accessed by children, not others
	protected String prime;
	protected String name;
	protected boolean alive;
	protected int age;
	protected String color;
	public abstract void speak();
	public void die(){//functions
		System.out.println("It's dead.");
	}
	public void eat(){
		System.out.println("Eating...");
	}
	public void onfire(){
		System.out.println("Help, I'm burning!");
	}
	//
	public Pet(int h, String name, boolean p){//able to create a new cat with function
		this.name = name;
		this.age =h;
		this.alive = p;
	}
	//
	public String getname(){//returns the name given to cat with ^ function
		return name;
	}
}
